<% form_remote_for :user, :url => { :action => 'create_user' } do |f| -%>
<h2>Add User</h2>

<div class="row">
  <label>Username</label>
  <%= f.text_field :username %>
</div>

<div class="row">
  <label>Email</label>
  <%= f.text_field :email %>
</div>

<div class="row">
  <label>Firstname</label>
  <%= f.text_field :firstname %>
</div>

<div class="row">
  <label>Lastname</label>
  <%= f.text_field :lastname %>
</div>

<div class="row">
  <label>Password</label>
  <%= f.password_field :password %>
</div>

<div class="row">
  <label>Password Confirmation</label>
  <%= f.password_field :password_confirmation %>
</div>

<%= submit_tag 'Add User', :class => 'submit' %>
<%= link_to_remote 'Cancel', :url => { :action => 'close', :id => 'new-user' } %>
<% end -%>
